package com.store.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order_food")
public class OrderFood extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_food_id", type = IdType.ID_WORKER_STR)
    private String orderFoodId;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 菜品ID
     */
    private String foodId;

    /**
     * 数量
     */
    private Integer orderAmount;

    @TableField(exist = false)
    private String foodName;


}
